﻿@model CSharpDay12__Many_to_Many_.Models.BoatsNCargoes

<br />

<div class="well container">
    <div class="row">
        <div class="col-sm-4">

            <h2>Vessel</h2>
            <h4><i>Name: </i>@Model.ShipName </h4>
            <h4><i>Weight: </i>@Model.GrossWeight</h4>
            <h4><i>Size: </i>@Model.Size</h4>
            <h4><i>Is Underway: </i>@Model.IsAtSea</h4>
        </div>
    </div>
</div>
@foreach (var a in Model.AllCargoes)
{
    <div>
        <div class="well container">
            <div class="row">
                <div class="col-sm-4">

                    <h2>Ships Cargo</h2>
                    <h4><i>Commodity: </i>@a.Name </h4>
                    <h4><i>Weight: </i>@a.Weight</h4>
                    <h4><i>Is Perishable: </i>@a.IsPerishable</h4>
                    <h4><i>Cargo Type: </i>@a.CargoeType</h4>
                </div>
            </div>
        </div>
    </div>
}